package com.nuc.kl.module.usermanager.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.nuc.kl.base.DaoSupportImpl;
import com.nuc.kl.module.usermanager.entity.Student;
import com.nuc.kl.module.usermanager.service.StudentService;

@Service
@Transactional
public class StudentServiceImpl extends DaoSupportImpl<Student> implements StudentService{

	@SuppressWarnings("unchecked")
	public List<Student> findByName(String fingName) {
		return	getSession().createQuery(//
				"FROM Student s WHERE s.loginName = ?")//
				.setParameter(0, fingName)//
				.list();
	}

}
